﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Eg.core" namespace="Eg.Core">
    <subclass name="Movie" extends="Product">
        <property name="Director"/>
        <list name="Actors" cascade="all-delete-orphan">
            <key column="MovieId"/>
            <index column="ActorIndex"/>
            <one-to-many class="ActorRole"/>
        </list>
    </subclass>
</hibernate-mapping>
